<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center set_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub set_fd0_0'>
					<view class='flex flex-wrap align-center set_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
						data-url="1">
						<text class='fu-iconfont2  set_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<text class='set_fd0_0_c1'>设置</text>
					<view class='flex flex-wrap align-center set_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---基本设置flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch set_fd1_0_c0_c0">
				<view class='flex flex-direction flex-wrap align-stretch set_fd1_0'>
					<view class='flex flex-wrap align-center justify-between set_fd1_0_c0' @tap.stop="handleJumpDiy"
						data-type="navigateTo" :data-url="`/pages/set/cardAndSafe/cardAndSafe`">
						<text class='set_fd1_0_c0_c0'>账号与安全</text>
						<text class='fu-iconfont2  set_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
					<view class='flex flex-wrap align-center justify-between set_fd1_0_c0' @tap.stop="handleJumpDiy"
						data-type="navigateTo" :data-url="`/pages/set/setPayPasswords/setPayPasswords`">
						<text class='set_fd1_0_c0_c0' v-if=" userData.is_pay_password==0">设置支付密码</text>
						<text class='set_fd1_0_c0_c0' v-if=" userData.is_pay_password=='1'">修改支付密码</text>
						<text class='fu-iconfont2  set_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
					<view class='flex flex-wrap align-center justify-between set_fd1_0_c0' @tap.stop="handleJumpDiy"
						data-type="navigateTo" :data-url="`/pages/set/feedback/feedback`">
						<text class='set_fd1_0_c0_c0'>意见反馈</text>
						<text class='fu-iconfont2  set_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
					<view class='flex flex-wrap align-center justify-between set_fd1_0_c0' @tap.stop="handleJumpDiy"
						data-type="navigateTo" :data-url="`/pages/set/noticeSet/noticeSet`">
						<text class='set_fd1_0_c0_c0'>通知设置</text>
						<text class='fu-iconfont2  set_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
					<view class='flex flex-wrap align-center justify-between set_fd1_0_c3' @tap.stop="handleJumpDiy"
						data-type="navigateTo" :data-url="`/pages/set/PermissionSettings/PermissionSettings`">
						<text class='set_fd1_0_c0_c0'>权限设置</text>
						<text class='fu-iconfont2  set_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
				</view>
				<view class='flex flex-direction flex-wrap align-stretch set_fd1_1'>
					<view class='flex flex-wrap align-center justify-between set_fd1_0_c0' @tap.stop="handleJumpDiy"
						data-type="navigateTo" :data-url="`/pages/login/agreements/agreements`">
						<text class='set_fd1_0_c0_c0'>用户协议</text>
						<text class='fu-iconfont2  set_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
					<view class='flex flex-wrap align-center justify-between set_fd1_0_c0' @tap.stop="handleJumpDiy"
						data-type="navigateTo" :data-url="`/pages/login/tactics/tactics`">
						<text class='set_fd1_0_c0_c0'>隐私政策</text>
						<text class='fu-iconfont2  set_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
					<view class='flex flex-wrap align-center justify-between set_fd1_0_c0' @tap.stop="handleJumpDiy"
						data-type="navigateTo" :data-url="`/pages/set/helpFeedback/helpFeedback`">
						<text class='set_fd1_0_c0_c0'>帮助与反馈</text>
						<text class='fu-iconfont2  set_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
					<view class='flex flex-wrap align-center justify-between set_fd1_0_c3' @tap.stop="handleJumpDiy"
						data-type="navigateTo" :data-url="`/pages/set/aboutUs/aboutUs`">
						<text class='set_fd1_0_c0_c0'>关于我们</text>
						<text class='fu-iconfont2  set_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
				</view>
				<view class='flex flex-direction flex-wrap align-stretch set_fd1_2'>
					<view class='flex flex-wrap align-center set_fd1_0_c0' @tap.stop="cacheFunc()">
						<text class='set_fd1_0_c0_c0'>清除缓存</text>
						<text class='set_fd1_2_c0_c1'>{{appRubbishCacheSize}}</text>
						<text class='fu-iconfont2  set_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
					<view class='flex flex-wrap align-center set_fd1_0_c0' @tap.stop="renewFunc()">
						<text class='set_fd1_0_c0_c0'>检查更新</text>
						<text class='set_fd1_2_c0_c1'>{{appVersion}}</text>
						<text class='fu-iconfont2  set_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
					<view class='flex flex-wrap align-center justify-between set_fd1_0_c3' @tap.stop="handleJumpDiy"
						data-type="navigateTo" :data-url="`/pages/set/cancelAccount/cancelAccount`">
						<text class='set_fd1_0_c0_c0'>注销账号</text>
						<text class='fu-iconfont2  set_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
				</view>
			</view>

			<!---基本设置flex布局结束-->
			<benben-popup v-model="popupShow1677313288773" :mask="true" :mask-close-able="true" mode='center'>
				<!---退出登录弹窗flex布局开始-->
				<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout set_flex_2">
					<text class='set_fd2_0'>提示</text>
					<text class='set_fd2_1'>确定退出当前账号？</text>
					<view class='flex flex-wrap align-center'>
						<button class='set_fd2_2_c0' @tap.stop="popupShow1677313288773=false">取消</button>
						<button class='set_fd2_2_c1' @tap.stop="signFunc()">确认</button>
					</view>
				</view>

				<!---退出登录弹窗flex布局结束-->

			</benben-popup>
			<view class="flex flex-wrap align-center justify-center benben-position-layout flex set_flex_3"
				@tap.stop="popupShow1677313288773=true">
				<text class='set_fd3_0'>退出登录</text>

			</view>
			<view :style="{height: '110rpx'}"></view>
			<app-update ref="update"></app-update>


		</view>
	</view>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},


		data() {
			return {
				"popupShow1677313288773": false,
				"dataMessage": {
					"is_cancel": ""
				},
				"userData": {
					"invite_code": "",
					"address": "",
					"address_code": "",
					"hobby": "",
					"tags": "",
					"id": "",
					"userlevel_id": "",
					"mobile": "",
					"real_name": "",
					"nickname": "",
					"avatar": "",
					"account": "",
					"email": "",
					"birthday": "",
					"gender": "",
					"create_time": "",
					"user_money": "",
					"freeze_money": "",
					"total_consumption_money": "",
					"score": "",
					"_mobile": "",
					"coupon": "",
					"collection_count": "",
					"browse_count": "",
					"total_money": "",
					"certified": "",
					"is_pay_password": "",
					"fuwuxingji": "",
					"gongzuozhuangtai": "",
					"shuzi": "",
					"jifen": "",
					"yajin": "",
					"level": {
						"aid": "",
						"name": "",
						"icon": "",
						"levelid": ""
					},
					"invite_num": "",
					"commission": "",
					"is_deposit": "",
					"is_account": "",
					"dengjidaoqishijian": "",
					"suozaidi": "",
					"huiyuanyue": "",
					"working_hours": "",
					"credit_score": "",
					"deposit": "",
					"deposit_switch": "",
					"withdrawal": "",
					"account_wx": "",
					"account_alipay": "",
					"account_bank": "",
					"joinin_state": "",
					"fid": "",
					"chinaarea_id": "",
					"city_status": "",
					"service_status": "",
					"remark": "",
					"deposit_money": "",
					"joinin_state_name": ""
				}
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},
			appVersion() {
				// 获取版本号
				return this.$store.state.appVersion
			},
			appRubbishCacheSize() { // 获取缓存大小
				return this.$store.state.appRubbishCacheSize
			}
		},
		watch: {},
		onLoad(options) {
			// this.getCancelFunc()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			this.getqm5c78c4772da97Func()
			this.$store.dispatch('getAppVersion') // 更新版本号
			this.$store.dispatch('getAppCache') // 更新缓存大小
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//清除缓存
			cacheFunc() {
				this.$store.dispatch('appClearCache')

			},
			//检查更新
			renewFunc() {
				this.$util.debounce(
					() => {
						this.$refs.update.checkAppUpdate()
					},
					1000,
					true
				)

			},
			//退出登录
			signFunc() {
				this.$store.commit('logout')
				this.$urouter.reLaunch(`/pages/tabBar/logon/logon`);
			},
			//会员管理-获取会员详细信息
			async getqm5c78c4772da97Func() {
				//请求方法
				//数据验证
				let datauserData = await this.$api.get(global.apiUrls.post5c78c4772da97, {

				});
				if (datauserData.data.code != 1) {
					this.$message.info(datauserData.data.msg);
					return
				}
				let infouserData = datauserData.data;
				this.userData = infouserData.data
			}
			//获取注销信息
			// async getCancelFunc() {
			// 	//请求方法
			// 	//数据验证

			// 	let datadataMessage = await this.$api.get(global.apiUrls.post63857c0b28a25, {

			// 	});

			// 	if (datadataMessage.data.code != 1) {
			// 		this.$message.info(datadataMessage.data.msg);
			// 		return
			// 	}
			// 	let infodataMessage = datadataMessage.data;
			// 	this.dataMessage = infodataMessage.data

			// },
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: rgba(248, 248, 248, 1);
		background-size: 100% auto;
	}

	.set_flex_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.set_fd0_0_c1 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333333;
		line-height: 50rpx;
	}

	.set_fd0_0_c0_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333;
		line-height: 88rpx;
	}

	.set_fd0_0_c0 {
		width: 200rpx;
		height: 88rpx;
	}

	.set_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.set_fd1_2_c0_c1 {
		font-size: 28rpx;
		color: rgba(191, 191, 191, 1);
		margin: 0rpx 24rpx 0rpx auto;
	}

	.set_fd1_2 {
		background: #fff;
		padding: 0rpx 32rpx 0rpx 32rpx;
		background-size: 100% auto !important;
	}

	.set_fd1_1 {
		background: #fff;
		padding: 0rpx 32rpx 0rpx 32rpx;
		background-size: 100% auto !important;
		margin: 0rpx 0rpx 20rpx 0rpx;
	}

	.set_fd1_0_c3 {
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.set_fd1_0_c0_c1 {
		font-size: 26rpx;
		color: rgba(191, 191, 191, 1);
	}

	.set_fd1_0_c0_c0 {
		font-size: 32rpx;
	}

	.set_fd1_0_c0 {
		border-bottom: 1px solid #eee;
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.set_fd1_0 {
		background: #fff;
		padding: 0rpx 32rpx 0rpx 32rpx;
		margin: 0rpx 0rpx 20rpx 0rpx;
		background-size: 100% auto !important;
	}

	.set_flex_2 {
		background: #fff;
		width: 540rpx;
		background-size: 100% auto !important;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
	}

	.set_fd2_2_c1 {
		border-top: 1px solid #eee;
		border-left: 1px solid #eee;
		background: #fff;
		border-radius: 0rpx 0rpx 16rpx 0rpx;
		font-size: 32rpx;
		color: rgba(227, 29, 26, 1);
		width: 269rpx;
		height: 94rpx;
		line-height: 94rpx;
		font-weight: 500;
	}

	.set_fd2_2_c0 {
		border-top: 1px solid #eee;
		background: #fff;
		border-radius: 0rpx 0rpx 0rpx 16rpx;
		font-size: 32rpx;
		color: rgba(153, 153, 153, 1);
		width: 269rpx;
		height: 94rpx;
		line-height: 94rpx;
		font-weight: 500;
	}

	.set_fd2_1 {
		line-height: 45rpx;
		font-size: 32rpx;
		font-weight: 500;
		color: #333333;
		margin: 0rpx 0rpx 37rpx 0rpx;
		text-align: center;
	}

	.set_fd2_0 {
		line-height: 50rpx;
		font-size: 36rpx;
		font-weight: 800;
		color: #333333;
		margin: 40rpx 0rpx 32rpx 0rpx;
		text-align: center;
	}

	.set_flex_3 {
		background: #fff;
		width: 750rpx;
		height: 110rpx;
		overflow: hidden;
		z-index: 10;
		bottom: calc(0rpx + var(--window-bottom));
		background-size: 100% auto !important;
	}

	.set_fd3_0 {
		color: rgba(227, 29, 26, 1);
		font-size: 32rpx;
		font-weight: 500;
		line-height: 45rpx;
	}
</style>